<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="quik.group.GroupProc"%>
<%@page import="java.util.ArrayList"%>
<%@page import="comm.util.QuikHashMap"%> 
<%
	GroupProc group = new GroupProc();
	ArrayList lt = null;
	lt = group.getMembersGroupInfo(session.getAttribute("SESSION_MEMBER_SEQ").toString());
	int cntGroups = 0;
	if(lt!=null)
		cntGroups = lt.size();
%>    
<div>내가 속해 있는 그룹입니다. ( <%=cntGroups%>개 ) </div>

	<%
	if(lt!=null){
		for(int i = 0; i<lt.size();i++){
			QuikHashMap hm = new QuikHashMap(); 
			hm = (QuikHashMap)lt.get(i);%>
			<div id="content-top"></div>
		<div id="lista" class="box">
			<ul>
			<li>
				<div><img width="100" height="100" src="./data/innerGroupImg/<%=hm.get("GROUP_IMG")%>"/></div>
			</li>
			<li><span>그룹명 : </span><%=hm.get("GROUP_NAME")%></li>
			<li><span>그룹소개 : </span><%=hm.get("GROUP_INTRO")%></li>
			<!-- <li><%=hm.get("COUNT")%>명</li>  -->
			<li><%if(hm.get("GROUP_TYPE").toString().equals("0")){%>
				공개
			<%}else{ %>
				비공개
			<%} %></li>
			<li><span>그룹 장 : </span><a href="./user/<%=hm.get("ADMIN_MEMBER_SEQ")%>"><%=hm.get("ADMIN_MEMBER_NICK")%></a></li>
			<li><span>개설일 : </span><%=hm.get("GROUP_REGDATE")%></li>
			<li><form action="./jsp/mypage/outGroupProc.jsp" method="POST"><input type="hidden" name="url" value="../../?content=mypage&menu=group&sub=mygroup"/><input type="hidden" name="innergroup_seq" value="<%=hm.get("INNERGROUP_SEQ")%>"/> <input type="submit" value="탈퇴"/></form></li>
			</ul>
			</div>
		<div id="content-bottom"></div>
		<%}
	}%>

